<template>
  <div class="box">
    <router-view></router-view>
    <head-list v-if="!$route.meta.TabbarShow"></head-list>
  </div>
</template>
<script>
import headList from "./components/headList.vue";
import axios from "axios";
export default {
  data() {
    return {};
  },
  components: { headList },
  created() {
    let image = "";
    axios.get("../http.json").then((res) => {
      image = res.data.name;
      image.forEach((item) => {
        this.$store.commit("imageData", item);
      });
    });
  },
};
</script>

<style lang="less">
.box {
  width: 100%;
  height: 100vh;
}
</style>
